import { IsNotEmpty, IsString } from "class-validator";


export class loginbyphoneDto {

    @IsNotEmpty({ message: '手机号不能为空' })
    @IsString({ message: '手机号必须是String 类型' })
    readonly phone: string

    @IsNotEmpty({ message: '验证码不能为空' })
    @IsString({ message: '验证码必须是String 类型' })
    readonly phonecode: string

    
}



export class sendphoneDto {

    @IsNotEmpty({ message: '手机号不能为空' })
    @IsString({ message: '手机号必须是String 类型' })
    readonly phone: string

}
